package com.kgo.eidtor.service.impl;

import com.kgo.eidtor.dao.SysCodeBeanMapper;
import com.kgo.eidtor.entity.SysCodeBean;
import com.kgo.eidtor.service.SysCodeService;
import com.kgo.eidtor.util.ResultUtil;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author keepgoon
 * @Description: TODO
 * @date 2019/1/3115:20
 */
@Service
public class SysCodeServiceImpl implements SysCodeService {
    @Resource
    private SysCodeBeanMapper sysCodeBeanMapper;
    @Override
    public String getSysCode(SysCodeBean code) {
        int count = sysCodeBeanMapper.getSysCodeCount(code);
        return ResultUtil.query(count,sysCodeBeanMapper.getSysCode(code),"系统code");
    }
}
